home *** CD-ROM | disk | FTP | other *** search
- global gmaxslide, pausa, gElencoOpere, gScappaPerMemoria
-
- on exitFrame
- go(the frame)
- if pausa = 0 then
- if the freeBlock < (the memorysize / 2) then
- tmp = the memberNum of sprite 1
- gScappaPerMemoria = "ristretto#" & tmp
- go(1, "black")
- unLoad()
- exit
- end if
- if the timer > (3 * 60) then
- tmp = the memberNum of sprite 1
- nome = member(tmp, "SLIDE").name
- vecchio = nome
- delete char 6 to 7 of nome
- pos = getOne(gElencoOpere, nome)
- if pos = 0 then
- pos = random(1, gmaxslide)
- end if
- if pos = gmaxslide then
- pos = 1
- else
- pos = pos + 1
- end if
- nome = getAt(gElencoOpere, pos)
- nome = nome & "01"
- the itemDelimiter = "#"
- repeat with i = 1 to the number of lines in field "titolo#nomefile"
- dati = line i of field "titolo#nomefile"
- cod = item 2 of dati
- if cod = nome then
- dida = item 1 of dati
- put dida into field "dida"
- exit repeat
- end if
- end repeat
- sprite(1).member = member(nome, "SLIDE")
- unloadMember(member(vecchio, "slide"))
- unLoad()
- startTimer()
- end if
- end if
- end
-